package spring.springentity.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import spring.springentity.entity.BaseEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("T_ORDER")
public class OrderEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "CUSTOMER")
    private String customer;
    @TableField(value = "BARISTA")
    private String barista;

    @TableField(value = "STATE")
    private Integer state;

    private String waiter;
}
